package com.cskaoyan.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.stereotype.Controller;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

/**
 * @author stone
 * @date 2022/01/04 10:52
 */
//额外扫描到SpringMVC的配置类和Controller组件
    //Filter里的type可以不写，默认值就是FilterType.ANNOTATION
@ComponentScan(value = "com.cskaoyan",
        excludeFilters = {@ComponentScan.Filter(/*type = FilterType.ANNOTATION,*/
                value = {Controller.class, EnableWebMvc.class})})
@Configuration
public class SpringConfiguration {
}
